package com.source.hotelbath.net.response;

import android.os.Parcel;
import android.os.Parcelable;

import com.source.hotelbath.model.GoodsListBean;

import java.util.List;

/**
 * Created by ZhouMeng on 2017/9/27.
 */

public class HotelGoodListResponse implements Parcelable {
    private List<GoodsListBean> commonGoods;

    public List<GoodsListBean> getCommonGoods() {
        return commonGoods;
    }

    public void setCommonGoods(List<GoodsListBean> commonGoods) {
        this.commonGoods = commonGoods;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(this.commonGoods);
    }

    public HotelGoodListResponse() {
    }

    protected HotelGoodListResponse(Parcel in) {
        this.commonGoods = in.createTypedArrayList(GoodsListBean.CREATOR);
    }

    public static final Parcelable.Creator<HotelGoodListResponse> CREATOR = new Parcelable.Creator<HotelGoodListResponse>() {
        @Override
        public HotelGoodListResponse createFromParcel(Parcel source) {
            return new HotelGoodListResponse(source);
        }

        @Override
        public HotelGoodListResponse[] newArray(int size) {
            return new HotelGoodListResponse[size];
        }
    };
}
